.smart-home-container {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #F5F6FA;
  min-height: 100vh;
  padding: 20px;
  color: #333333;
}

/* 顶部导航 */
.header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #4A90E2;
}

.time-weather {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #666666;
  font-size: 16px;
}

/* 场景模式 */
.section-title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 15px 0;
  color: #333333;
}

.scene-section {
  margin-bottom: 25px;
}

.scene-container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 10px;
  width: 100%;
}

.scene-card {
  flex: 1;
  min-width: 0;
  background-color: white;
  border-radius: 12px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scene-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scene-card.active {
  background-color: #4A90E2;
  color: white;
}

.scene-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.scene-name {
  font-size: 14px;
  font-weight: 500;
}

/* 设备控制 */
.device-section {
  margin-bottom: 25px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.device-card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.device-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.device-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.device-header i {
  font-size: 20px;
  color: #4A90E2;
}

.device-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  flex-grow: 1;
}

.switch {
  width: 50px;
  height: 26px;
  background-color: #e0e0e0;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.switch.on {
  background-color: #4A90E2;
}

.switch-handle {
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.switch.on .switch-handle {
  transform: translateX(24px);
}

/* 设备内容 */
.device-body {
  padding-top: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.slider-container {
  margin-bottom: 15px;
  flex-grow: 1;
}

.slider-container label {
  display: block;
  font-size: 13px;
  color: #666666;
  margin-bottom: 5px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
  margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #4A90E2;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]:disabled::-webkit-slider-thumb {
  background: #cccccc;
}

.brightness-value,
.volume-value {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #666666;
}

/* 温度控制 */
.temp-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.temp-display {
  display: flex;
  flex-direction: column;
}

.temp-value {
  font-size: 24px;
  font-weight: 500;
  color: #4A90E2;
}

.temp-mode {
  font-size: 13px;
  color: #666666;
}

.temp-buttons {
  display: flex;
  gap: 10px;
}

.temp-buttons button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.temp-buttons button:hover {
  background-color: #e0e0e0;
}

.temp-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 模式按钮 */
.mode-buttons,
.source-buttons,
.sound-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mode-buttons button,
.source-buttons button,
.sound-modes button {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 16px;
  background-color: #f0f0f0;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-buttons button.active,
.source-buttons button.active,
.sound-modes button.active {
  background-color: #4A90E2;
  color: white;
}

.mode-buttons button:disabled,
.source-buttons button:disabled,
.sound-modes button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 播放控制 */
.player-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.player-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4A90E2;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-controls button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.player-controls button:hover:not(:disabled) {
  background-color: #3a7bc8;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .device-grid {
    grid-template-columns: 1fr;
  }

  .scene-container {
    gap: 10px;
  }

  .scene-card {
    flex: 0 0 100px;
    padding: 15px 10px;
  }
}